package com.zff.rental.utils.specification;

import jakarta.persistence.criteria.CriteriaBuilder;
import jakarta.persistence.criteria.Path;
import jakarta.persistence.criteria.Predicate;

/**
 * @author HCY
 */
public class NullPre<Root, PathV> extends BasePre<Root, PathV, Void> {
    public NullPre(String name) {
        super(name);
    }

    @Override
    protected Predicate generate(CriteriaBuilder cb, Path<PathV> path, Void[] params) {
        return cb.isNull(path);
    }
}
